package com.pox.guli.service.cms.feign.fallback;

import com.pox.guli.common.base.result.R;
import com.pox.guli.service.cms.feign.OssFileFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * Oss 远程调用对象存储服务容错类
 * @Author PoX21s
 * @Date: 2022/1/5 16:34
 * @Version 1.0
 */

@Service
@Slf4j
public class OssFileServiceFallBack implements OssFileFeignService {

    @Override
    public R removeFile(String url) {
        log.info("熔断保护");
        return R.error().message("调用超时");
    }
}